package com.teangtang.fly.controller;

import com.teangtang.fly.entity.IdCardType;
import com.teangtang.fly.service.IdCardTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/idCardType")
public class IdCardTypeController {
    @Autowired
    private IdCardTypeService idCardTypeService;

    @GetMapping
    public List<IdCardType> getCardType() {
        return idCardTypeService.getAllIdCardTypes();
    }
}
